refactor(atomic): declare/instantiate atomic-color-facet validation schema as private static readonly class member#6788
Merged
fbeaudoincoveo merged 3 commits intomainfrom Dec 16, 2025
Conversation
Co-authored-by: fbeaudoincoveo <23503066+fbeaudoincoveo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor atomic-color-facet validation schema to static readonly
Refactor atomic-color-facet validation schema to static readonly
Dec 11, 2025
fbeaudoincoveo
approved these changes
Dec 15, 2025
fbeaudoincoveo
approved these changes
Dec 15, 2025
packages/atomic/src/components/search/atomic-color-facet/atomic-color-facet.ts
Show resolved
Hide resolved
Co-authored-by: fbeaudoincoveo <23503066+fbeaudoincoveo@users.noreply.github.com>
fbeaudoincoveo
approved these changes
Dec 15, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jmazzah-coveo
approved these changes
Dec 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Bueno validation schema in
AtomicColorFacetwas instantiated in the constructor on every component creation. This refactors it to aprivate static readonlyclass member, following the pattern established inatomic-result-timespan.Additionally, the
headingLevelproperty documentation has been clarified to accurately reflect that a value of 0 is valid and renders a div instead of a heading element.Changes
private static readonly propsSchemaclass memberValidatePropsControllerto referenceAtomicColorFacet.propsSchemaheadingLevelproperty documentation to clarify that 0 is a valid value that renders a div instead of a heading elementBefore:
After:
✅ Checklist
.mdxfileindex.tsandlazy-index.tsfiles.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Jira: KIT-5370